export default {
	data() {
		return {
			demoShow: false,
			treePath: "",
			demoTree: [{
					text: "父节点1",
					value: "1-0",
					children: [{
							text: "子节点1-1",
							value: "1-0-1"
						},
						{
							text: "子节点1-2",
							value: "1-0-2"
						},
						{
							text: "子节点1-3",
							value: "1-0-3",
							children: [{
									text: "孙子节点1-3-1",
									value: "1-0-3-1"
								},
								{
									text: "孙子节点1-3-2",
									value: "1-0-3-2"
								},
								{
									text: "孙子节点1-3-3",
									value: "1-0-3-3"
								}
							]
						}
					]
				},
				{
					text: "父节点2",
					children: [{
						text: "子节点2-1",
						value: "2-0-1"
					}]
				}
			]
		}
	},
	methods: {
		demoTreeConfirm(e) {
			console.log("点击树节点", e);
		},
		demoTreeChooseConfirm({
			chooseItem,
			choosePath
		}) {
			this.treePath = choosePath.map(m => m.label).join("/")
			console.log("选择树节点", {
			chooseItem,
			choosePath
		});
		}
	}
}
